<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./lib/vue.js"></script>
  </head>
  <body>
    <div id="app">
      <input type="text" v-model="iptValue" v-on:keyup.enter="lisArr=!lisArr" />
      <ul>
        <li v-if="lisArr">
          <p>{{iptValue}}</p>
          <button @click="delClick">删除</button>
          <span>{{states}}</span>
          <button @click="overClick">{{over}}</button>
        </li>
      </ul>
    </div>
    <script>
      new Vue({
        el: "#app",
        data() {
          return {
            lisArr: false,
            iptValue: "",
            states: "待完成",
            over: "完成",
          };
        },
        methods: {},
      });
    </script>
  </body>
</html>
